package com.example.video.video_server.entity.vo;

import com.example.video.video_server.entity.VideoCategory;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 视频类别视图
 * <p/>
 *
 * @author : yj
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="VideoCategoryVo对象", description="视频标签视图")
public class VideoCategoryVo extends VideoCategory {

    @ApiModelProperty("子类别列表")
    private List<VideoCategory> children;

    @ApiModelProperty("标签id数组")
    private List<Integer> labelIds ;

    public VideoCategoryVo(VideoCategory item) {
        this.setSort(item.getSort()).setId(item.getId()).setIcon(item.getIcon()).setName(item.getName()).setParentId(item.getParentId()).setSign(item.getSign()).setStatus(item.getStatus());
    }
}
